/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-03-31
 * Time:20:01
 */
public class Room {
    private String id;
    private double area;
    private String type;
    private int price;
    private boolean state;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getArea() {
        return area;
    }

    public void setArea(double area) {
        this.area = area;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public void showRoom(){
        System.out.print("编号"+id+" ");
        System.out.print("面积"+area+" ");
        System.out.print("户型"+type+" ");
        System.out.print("单价"+price+" ");
        System.out.println("销售状态"+state+" ");
    }
    public double getMoney(){
        return price*area;
    }
}
